home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17355 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 75 69 62 6b 2e |Path: ne|ws.uibk.|
|00000010| 61 63 2e 61 74 21 6e 65 | 77 73 61 64 6d 0a 46 72 |ac.at!ne|wsadm.Fr|
|00000020| 6f 6d 3a 20 48 65 72 77 | 69 67 20 53 74 65 63 68 |om: Herw|ig Stech|
|00000030| 65 72 20 3c 68 73 74 65 | 63 68 65 72 40 64 6f 70 |er <hste|cher@dop|
|00000040| 65 79 2e 75 69 62 6b 2e | 61 63 2e 61 74 3e 0a 4e |ey.uibk.|ac.at>.N|
|00000050| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000060| 6c 61 6e 67 2e 63 2b 2b | 0a 53 75 62 6a 65 63 74 |lang.c++|.Subject|
|00000070| 3a 20 52 65 3a 20 6d 65 | 6d 63 6f 70 79 2e 2e 2e |: Re: me|mcopy...|
|00000080| 0a 44 61 74 65 3a 20 4d | 6f 6e 2c 20 31 35 20 41 |.Date: M|on, 15 A|
|00000090| 70 72 20 31 39 39 36 20 | 31 33 3a 35 37 3a 32 32 |pr 1996 |13:57:22|
|000000a0| 20 2b 30 32 30 30 0a 4f | 72 67 61 6e 69 7a 61 74 | +0200.O|rganizat|
|000000b0| 69 6f 6e 3a 20 49 6e 73 | 74 69 74 75 74 65 20 66 |ion: Ins|titute f|
|000000c0| 6f 72 20 54 68 65 6f 72 | 65 74 69 63 61 6c 20 50 |or Theor|etical P|
|000000d0| 68 79 73 69 63 73 2c 20 | 55 6e 69 76 2e 20 6f 66 |hysics, |Univ. of|
|000000e0| 20 49 6e 6e 73 62 72 75 | 63 6b 2c 20 41 75 73 74 | Innsbru|ck, Aust|
|000000f0| 72 69 61 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |ria.Mess|age-ID: |
|00000100| 3c 33 31 37 32 33 39 41 | 32 2e 34 31 43 36 40 64 |<317239A|2.41C6@d|
|00000110| 6f 70 65 79 2e 75 69 62 | 6b 2e 61 63 2e 61 74 3e |opey.uib|k.ac.at>|
|00000120| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 34 6b |.Referen|ces: <4k|
|00000130| 73 69 75 6c 24 6e 31 6f | 40 6e 65 77 73 2e 64 75 |siul$n1o|@news.du|
|00000140| 6b 65 2e 65 64 75 3e 0a | 4e 4e 54 50 2d 50 6f 73 |ke.edu>.|NNTP-Pos|
|00000150| 74 69 6e 67 2d 48 6f 73 | 74 3a 20 6a 65 72 72 69 |ting-Hos|t: jerri|
|00000160| 65 2e 75 69 62 6b 2e 61 | 63 2e 61 74 0a 4d 69 6d |e.uibk.a|c.at.Mim|
|00000170| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|00000180| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 74 65 78 |ontent-T|ype: tex|
|00000190| 74 2f 70 6c 61 69 6e 3b | 20 63 68 61 72 73 65 74 |t/plain;| charset|
|000001a0| 3d 75 73 2d 61 73 63 69 | 69 0a 43 6f 6e 74 65 6e |=us-asci|i.Conten|
|000001b0| 74 2d 54 72 61 6e 73 66 | 65 72 2d 45 6e 63 6f 64 |t-Transf|er-Encod|
|000001c0| 69 6e 67 3a 20 37 62 69 | 74 0a 58 2d 4d 61 69 6c |ing: 7bi|t.X-Mail|
|000001d0| 65 72 3a 20 4d 6f 7a 69 | 6c 6c 61 20 32 2e 30 31 |er: Mozi|lla 2.01|
|000001e0| 20 28 58 31 31 3b 20 49 | 3b 20 4f 53 46 31 20 56 | (X11; I|; OSF1 V|
|000001f0| 33 2e 32 20 61 6c 70 68 | 61 29 0a 54 6f 3a 20 4a |3.2 alph|a).To: J|
|00000200| 6f 73 68 75 61 20 4c 69 | 6e 64 71 75 69 73 74 20 |oshua Li|ndquist |
|00000210| 3c 6c 69 6e 64 71 75 69 | 6a 40 61 63 70 75 62 2e |<lindqui|j@acpub.|
|00000220| 64 75 6b 65 2e 65 64 75 | 3e 0a 0a 3e 20 48 69 2e |duke.edu|>..> Hi.|
|00000230| 2e 2e 49 27 6d 20 77 6f | 6e 64 65 72 69 6e 67 20 |..I'm wo|ndering |
|00000240| 69 66 20 61 6e 79 6f 6e | 65 20 6b 6e 6f 77 73 20 |if anyon|e knows |
|00000250| 74 68 65 20 73 79 6e 74 | 61 78 20 66 6f 72 20 74 |the synt|ax for t|
|00000260| 68 65 20 6d 65 6d 63 6f | 70 79 20 66 75 6e 63 74 |he memco|py funct|
|00000270| 69 6f 6e 0a 3e 20 28 77 | 65 6c 6c 2c 20 49 20 74 |ion.> (w|ell, I t|
|00000280| 68 69 6e 6b 20 69 74 27 | 73 20 6d 65 6d 63 6f 70 |hink it'|s memcop|
|00000290| 79 2e 2e 2e 69 74 20 6d | 69 67 68 74 20 62 65 20 |y...it m|ight be |
|000002a0| 73 6f 6d 65 74 68 69 6e | 67 20 73 69 6d 69 6c 61 |somethin|g simila|
|000002b0| 72 20 74 6f 0a 3e 20 6d | 65 6d 63 6f 70 79 2e 2e |r to.> m|emcopy..|
|000002c0| 2e 69 74 27 73 20 74 68 | 65 20 66 75 6e 63 74 69 |.it's th|e functi|
|000002d0| 6f 6e 20 74 68 61 74 20 | 63 6f 70 69 65 73 20 73 |on that |copies s|
|000002e0| 6f 6d 65 20 73 70 65 63 | 69 66 69 65 64 20 61 72 |ome spec|ified ar|
|000002f0| 65 61 20 6f 66 20 6d 65 | 6d 6f 72 79 0a 3e 20 62 |ea of me|mory.> b|
|00000300| 69 74 77 69 73 65 20 69 | 6e 74 6f 20 73 6f 6d 65 |itwise i|nto some|
|00000310| 20 6f 74 68 65 72 20 61 | 72 65 61 20 6f 66 20 6d | other a|rea of m|
|00000320| 65 6d 6f 72 79 29 2e 20 | 20 54 68 69 73 20 77 6f |emory). | This wo|
|00000330| 75 6c 64 20 62 65 20 76 | 65 72 79 20 68 65 6c 70 |uld be v|ery help|
|00000340| 66 75 6c 3b 0a 3e 20 74 | 68 61 6e 6b 73 20 6d 75 |ful;.> t|hanks mu|
|00000350| 63 68 2e 0a 3e 20 0a 54 | 68 65 20 73 79 6e 74 61 |ch..> .T|he synta|
|00000360| 78 20 66 6f 72 20 74 68 | 65 20 6d 65 6d 63 70 79 |x for th|e memcpy|
|00000370| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 3a 0a 0a 23 | functio|n is:..#|
|00000380| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 2e |include |<string.|
|00000390| 68 3e 0a 6d 65 6d 63 70 | 79 28 74 61 72 67 65 74 |h>.memcp|y(target|
|000003a0| 2c 73 74 61 72 74 2c 73 | 69 7a 65 29 3b 0a 0a 77 |,start,s|ize);..w|
|000003b0| 68 65 72 65 20 22 73 74 | 61 72 74 22 20 69 73 20 |here "st|art" is |
|000003c0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|000003d0| 20 61 64 72 65 73 73 20 | 66 72 6f 6d 20 77 68 65 | adress |from whe|
|000003e0| 72 65 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 63 |re you w|ant to c|
|000003f0| 6f 70 79 0a 73 6f 6d 65 | 74 68 69 6e 67 20 74 6f |opy.some|thing to|
|00000400| 20 74 68 65 20 6d 65 6d | 6f 72 79 20 6c 6f 63 61 | the mem|ory loca|
|00000410| 74 69 6f 6e 20 77 68 65 | 72 65 20 22 74 61 72 67 |tion whe|re "targ|
|00000420| 65 74 22 20 70 6f 69 6e | 74 73 20 74 6f 2e 0a 22 |et" poin|ts to.."|
|00000430| 73 69 7a 65 22 20 69 73 | 20 74 68 65 20 61 6d 6f |size" is| the amo|
|00000440| 75 6e 74 20 6f 66 20 64 | 61 74 61 20 79 6f 75 20 |unt of d|ata you |
|00000450| 77 61 6e 74 20 74 6f 20 | 63 6f 70 79 2e 0a 65 2e |want to |copy..e.|
|00000460| 67 2e 0a 0a 20 20 69 6e | 74 20 2a 74 61 72 67 65 |g... in|t *targe|
|00000470| 74 3b 0a 20 20 69 6e 74 | 20 73 74 61 72 74 5b 31 |t;. int| start[1|
|00000480| 30 5d 3b 0a 20 20 74 61 | 72 67 65 74 20 3d 20 6e |0];. ta|rget = n|
|00000490| 65 77 20 69 6e 74 5b 31 | 30 5d 3b 0a 20 20 6d 65 |ew int[1|0];. me|
|000004a0| 6d 63 6f 70 79 28 74 61 | 72 67 65 74 2c 20 73 74 |mcopy(ta|rget, st|
|000004b0| 61 72 74 2c 20 73 69 7a | 65 6f 66 28 69 6e 74 29 |art, siz|eof(int)|
|000004c0| 2a 31 30 29 3b 0a 0a 77 | 69 6c 6c 20 63 6f 70 79 |*10);..w|ill copy|
|000004d0| 20 74 68 65 20 64 61 74 | 61 20 69 6e 20 74 68 65 | the dat|a in the|
|000004e0| 20 61 72 72 61 79 20 73 | 74 61 72 74 2e 0a 0a 2d | array s|tart...-|
|000004f0| 2d 20 0a 48 65 72 77 69 | 67 20 53 74 65 63 68 65 |- .Herwi|g Steche|
|00000500| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r | |
|00000510| 20 20 65 6d 61 69 6c 3a | 20 48 65 72 77 69 67 2e | email:| Herwig.|
|00000520| 53 74 65 63 68 65 72 40 | 75 69 62 6b 2e 61 63 2e |Stecher@|uibk.ac.|
|00000530| 61 74 20 20 20 20 20 20 | 20 20 20 0a 49 6e 73 74 |at | .Inst|
|00000540| 2e 20 66 2e 20 54 68 65 | 6f 72 65 74 69 63 61 6c |. f. The|oretical|
|00000550| 20 50 68 79 73 69 63 73 | 20 20 20 70 68 6f 6e 65 | Physics| phone|
|00000560| 3a 20 28 2b 34 33 20 35 | 31 32 29 20 35 30 37 20 |: (+43 5|12) 507 |
|00000570| 36 32 31 38 20 20 20 0a | 55 6e 69 76 65 72 73 69 |6218 .|Universi|
|00000580| 74 79 20 6f 66 20 49 6e | 6e 73 62 72 75 63 6b 20 |ty of In|nsbruck |
|00000590| 20 20 20 20 20 20 20 46 | 61 78 3a 20 20 20 28 2b | F|ax: (+|
|000005a0| 34 33 20 35 31 32 29 20 | 35 30 37 20 32 39 31 39 |43 512) |507 2919|
|000005b0| 0a 41 75 73 74 72 69 61 | 0a |.Austria|. |
+--------+-------------------------+-------------------------+--------+--------+